//
//  LVDistanceEditViewController.m
//  LEVE
//
//  Created by 上官惠阳 on 2017/3/2.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import "LVDistanceEditViewController.h"
#import "LVSwitchCell.h"
#import "LVSlideCell.h"

@interface LVDistanceEditViewController ()

@end

@implementation LVDistanceEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"距离";

    [self HY_reloadData];
}
#pragma mark - UITableViewDelegate
- (NSInteger)HY_numberOfSections {
    return 1;
}

- (NSInteger)HY_numberOfRowsInSection:(NSInteger)section {
    return 2;
}

- (HYBaseTableViewCell *)HY_cellAtIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.row == 0) {

        LVSwitchCell *switchCell = [LVSwitchCell nibCellWithTableView:self.tableView];

        return switchCell;
    } else {
        LVSlideCell *slideCell = [LVSlideCell nibCellWithTableView:self.tableView];
        slideCell.slideType = LVDistanceSlide;
        return slideCell;
    }
}
- (CGFloat)HY_cellheightAtIndexPath:(NSIndexPath *)indexPath {
    if(indexPath.row == 0){
        return 72;
    }else{
        return 108;
    }
}
#pragma mark 
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
